package oopabstract.abstractDemo1;


public class Text {
    public static void main(String[] args) {
        //抽象类不能被实例化,也就是不能创建对象
        //Person p = new Person();

        Student s = new Student("zhangsan",20);
        System.out.println("age is :" + s.getAge());
        s.work();
    }
}
